home *** CD-ROM | disk | FTP | other *** search
/ Aminet 44 / Aminet 44 (2001)(GTI - Schatztruhe)[!][Aug 2001].iso / Aminet / comm / mail / YAM23src.lha / Source / headers.h < prev    next >
C/C++ Source or Header  |  2001-05-12  |  4KB  |  162 lines

  1. /***************************************************************************
  2.  
  3.  YAM - Yet Another Mailer
  4.  Copyright (C) 1995-2000 by Marcel Beck <mbeck@yam.ch>
  5.  Copyright (C) 2000-2001 by YAM Open Source Team
  6.  
  7.  This program is free software; you can redistribute it and/or modify
  8.  it under the terms of the GNU General Public License as published by
  9.  the Free Software Foundation; either version 2 of the License, or
  10.  (at your option) any later version.
  11.  
  12.  This program is distributed in the hope that it will be useful,
  13.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  GNU General Public License for more details.
  16.  
  17.  You should have received a copy of the GNU General Public License
  18.  along with this program; if not, write to the Free Software
  19.  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  20.  
  21.  YAM Official Support Site :  http://www.yam.ch
  22.  YAM OpenSource project    :  http://sourceforge.net/projects/yamos/
  23.  
  24.  $Id: headers.h,v 1.11 2001/05/12 22:03:31 nicholai Exp $
  25.  
  26. ***************************************************************************/
  27.  
  28. /***************************************************************************
  29.  Headers
  30. ***************************************************************************/
  31.  
  32. //#include <mpatrol.h>
  33. #include <ctype.h>
  34. #include <stdlib.h>
  35. #include <string.h>
  36. #include <stdio.h>
  37. #include <time.h>
  38. #include <math.h>
  39.  
  40. #include <exec/memory.h>
  41. #include <exec/execbase.h>
  42. #include <dos/datetime.h>
  43. #include <dos/dostags.h>
  44. #include <dos/doshunks.h>
  45. #include <workbench/workbench.h>
  46. #include <workbench/startup.h>
  47. #include <devices/printer.h>
  48. #include <intuition/icclass.h>
  49. #include <intuition/gadgetclass.h>
  50. #include <datatypes/pictureclass.h>
  51. #include <datatypes/soundclass.h>
  52. #include <libraries/locale.h>
  53. #include <libraries/asl.h>
  54. #include <libraries/mui.h>
  55. #include <libraries/gadtools.h>
  56. #include <libraries/openurl.h>
  57. #include <libraries/genesis.h>
  58. #include <libraries/cmanager.h>
  59. #include <mui/NListtree_mcc.h>
  60. #include <mui/NList_mcc.h>
  61. #include <mui/NListview_mcc.h>
  62. #include <mui/TextEditor_mcc.h>
  63. #include <mui/BetterString_mcc.h>
  64. #include <mui/Toolbar_mcc.h>
  65. #include <rexx/rxslib.h>
  66. #include <rexx/storage.h>
  67. #include <xpk/xpk.h>
  68. #include <clib/alib_protos.h>
  69. #ifdef __MORPHOS__
  70. #define NO_PPCINLINE_STDARG
  71. #include <ppcinline/locale.h>
  72. #include <ppcinline/socket.h>
  73. #else
  74. #include <proto/socket.h>
  75. #include <proto/locale.h>
  76. #endif
  77. #include <proto/muimaster.h>
  78. #include <proto/dos.h>
  79. #include <proto/exec.h>
  80. #include <proto/utility.h>
  81. #include <proto/icon.h>
  82. #include <proto/intuition.h>
  83. #include <proto/graphics.h>
  84. #include <proto/datatypes.h>
  85. #include <proto/wb.h>
  86. #include <proto/iffparse.h>
  87. #include <proto/keymap.h>
  88. #include <proto/rexxsyslib.h>
  89. #include <proto/xpkmaster.h>
  90. #include <proto/openurl.h>
  91. #include <proto/miami.h>
  92. #include <proto/genesis.h>
  93. #include <proto/cmanager.h>
  94. #include <clib/macros.h>
  95. #include <NewReadArgs.h>
  96. #include <compiler.h>
  97. #include <extra.h>
  98.  
  99.  
  100. #ifdef __MORPHOS__
  101. #define CreateExtIO    CreateIORequest
  102. #define DeleteExtIO    DeleteIORequest
  103. #undef DoSuperMethod
  104. #define DoSuperMethod(cl,obj,a,b,c) ({ LONG m[] = { (LONG)(a), (LONG)(b), (LONG)(c) }; DoSuperMethodA(cl,obj,(Msg)m); })
  105. #define _OSERR         IoErr()
  106. #define CreatePort(a,b)    CreateMsgPort()
  107. #define DeletePort(a)    DeleteMsgPort(a)
  108. #define KPrintF dprintf
  109.  
  110. /*MorphOS standard netincludes don't have these*/
  111.  
  112. struct in_addr {
  113.   u_long s_addr;
  114. };
  115.  
  116. struct sockaddr_in {
  117.   u_char sin_len;
  118.   u_char sin_family;
  119.   u_short sin_port;
  120.   struct in_addr sin_addr;
  121.   char sin_zero[8];
  122. };
  123.  
  124.  struct hostent {
  125.   char *h_name;
  126.   char **h_aliases;
  127.   int h_addrtype;
  128.   int h_length;
  129.   char **h_addr_list;
  130.   #define h_addr h_addr_list[0]
  131.  
  132.   #define Shutdown shutdown
  133.   #define GetHostByName gethostbyname
  134.   #define Connect connect
  135.   #define Recv recv
  136.   #define Send send
  137.   #define Socket socket
  138.  
  139.   #define SMTP_NO_SOCKET -1
  140.  
  141.   #define SOCK_STREAM 1
  142.   #define AF_INET 2
  143.   #define EINPROGRESS 36
  144.  
  145. };
  146.  
  147. #else
  148. #include <clib/locale_protos.h>
  149. #endif
  150.  
  151. #if (defined DEBUG) || (defined _MGST)
  152.     #include "clib/debug_protos.h"
  153. #endif
  154.  
  155. #if (defined DEBUG)
  156.     #define DB(x) (x)
  157.     #define DBpr(x) (KPrintF("YAM: %s",x))
  158. #else
  159.     #define DB(x)
  160.     #define DBpr(x)
  161. #endif
  162.